package hungry;

public class HungryStaticSingleton {
    private static  HungryStaticSingleton instance;
    static {
        instance = new HungryStaticSingleton();
    }

    //构造方法私有化
    private  HungryStaticSingleton(){

    }

    public static HungryStaticSingleton getInstance(){
        return instance;
    }
}
